﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/Administrator/Dashboard.Master" AutoEventWireup="true" CodeBehind="ScheduleUpdate.aspx.cs" Inherits="OnlineRailway.UI.Administrator.ScheduleUpdate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Style/MainContent.css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="server">
    <div id="main">
        <div id="form">
            <div id="header">
                <p>
                    Update schedule</p>
                <asp:Button runat="server" ID="btnScheduleManager" Text="Schedule manager" CssClass="btnNav btnNavTop"
                    PostBackUrl="~/UI/Administrator/ScheduleManagement.aspx" />
            </div>
            <div id="form-content">
                <div class="lblError">
                    <asp:Label runat="server" ID="lblMes"></asp:Label>
                </div>
                <div id="create-schedule" style="width: 853px; height: 545px; position: relative;
                    top: 25px; left: 39px;">
                    <fieldset style="width: 50%; height: 540px; top: 0px; left: 0px; position: relative;">
                        <fieldset>
                            <legend><strong>ScheduleName</strong></legend>
                            <input class="formatTextbox" id="txtScheduleName" name="txtScheduleName" type="text"
                                maxlength="100" value="<%=ScheduleName %>" />
                            <span id="error-ScheduleName" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>StartStation</strong></legend>
                            <!--<input class="formatTextbox" id="txtStartStation" name="txtStartStation" type="text"
                                       placeholder="Enter start station ..." maxlength="50" />-->
                            <asp:DropDownList runat="server" ID="ddlStartStation" Height="30px" 
                                Width="350px"/>    
                            <span id="error-StartStation" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>EndStation</strong></legend>
                            <!--<input class="formatTextbox" id="txtEndStation" name="txtEndStation" type="text"
                                       maxlength="50" placeholder="Enter end station ..." />-->
                            <asp:DropDownList runat="server" ID="ddlEndStation" Height="30px" 
                                Width="350px"/>
                            <span id="error-EndStation" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>BetweenStation</strong></legend>
                            <input class="formatTextbox" id="txtBetweenStation" name="txtBetweenStation" type="text"
                                maxlength="100" value="<%=BetweenStation %>" />
                            <span id="error-BetweenStation" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>Distances</strong></legend>
                            <input class="formatTextbox" id="txtDistances" name="txtDistances" type="text" maxlength="10"
                                value="<%=Distances %>" />
                            <span id="error-Distances" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>LongTime</strong></legend>
                            <input class="formatTextbox" id="txtLongTime" name="txtLongTime" type="text" value="<%=LongTime %>" />
                            <span id="error-LongTime" class="input-error-message"></span>
                        </fieldset>
                    </fieldset>
                    <fieldset style="width: 50%; height: 540px; position: absolute; float: right; top: 0px;
                        left: 427px;">
                        <fieldset>
                            <legend><strong>Fare</strong></legend>
                            <input class="formatTextbox" id="txtFare" name="txtFare" type="text" value="<%=Fare %>" />
                            <span id="error-Fare" class="input-error-message"></span>
                        </fieldset>
                        <fieldset>
                            <legend><strong>Description</strong></legend>
                            <textarea id="txtaDes" name="txtaDes" maxlength="200" style="margin-left: 0px;
                                height: 81px; width: 350px;"><%=Description %>
                            </textarea>
                        </fieldset>
                        <fieldset>
                            <legend><strong>Status</strong></legend>
                            <asp:DropDownList runat="server" ID="ddlStatus" Height="30px" 
                                              Width="350px">
                                <asp:ListItem>Enabled</asp:ListItem>
                                <asp:ListItem>Disabled</asp:ListItem>
                            </asp:DropDownList>
                        </fieldset>
                        <br />
                        <asp:Button runat="server" ID="btnCreate" Text="Update" CssClass="btnNav" 
                            onclick="btnCreate_Click" />
                    </fieldset>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
